package pattern.adapter

/**
 * 这个就是适配器
 */
class Adapter extends Target{

  private var adaptee:Adaptee = _

  override def request(): Unit = {
    adaptee.specificRequest()
  }

  def setAdaptee(adaptee: Adaptee): Unit ={
    this.adaptee = adaptee
  }
}
